package com.niiwoo.civet.scheduler.trigger;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.account.service.bankcard.BankCardDubboService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by wangjichao on 2017/12/9.
 */
@Component
@Slf4j
public class BankCardRebindJobTrigger {
    @Reference(version = "1.0.0")
    private BankCardDubboService bankCardDubboService;

    @Scheduled(cron = "${bankcard.bankcard-rebind}")
    public void rebindBankCard(){
        log.info("==========rebindBankCardJob invoke==========");
        bankCardDubboService.rebindBankCardJob();
    }

}
